home *** CD-ROM | disk | FTP | other *** search
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
- <HTML lang="en"><HEAD><TITLE>Add a SQL Method</TITLE>
- </HEAD>
- <BODY BGCOLOR="#FFFFFF" LINK="#000099" VLINK="#555555">
- <H2>Add a SQL Method</H2>
-
- <dtml-var "HelpSys.HelpButton('Z-SQL-Method_Add.stx','ZSQLMethods')">
-
- <dtml-if SQLConnectionIDs>
- <P>
- A SQL Method allows you to access a SQL database. For more
- information see the
- <a href="http://www.zope.org/Documentation/Guides/ZSQL">Z
- SQL Methods User's Guide</a>.
- </P>
-
- <P>In the form below <EM>Connection id</EM> is the name
- of the SQL Database Connection to use.
- <EM>Arguments</EM> is a list of variables which the
- SQL Method accepts.
- <EM>Query template</EM> is a template of the SQL statement
- which the SQL Method will execute.
- </P>
-
- <form action="manage_addZSQLMethod" method="post">
-
- <table>
-
- <tr> <th align='LEFT'>Id</th>
- <td align='LEFT'><input name="id" size="40"></td></tr>
- <tr> <th align='LEFT'><em>Title<em></th>
- <td align='LEFT'><input name="title" size="40"></td></tr>
- <tr> <th align='LEFT'>Connection id</th>
- <td align='LEFT'><select name="connection_id">
- <dtml-in SQLConnectionIDs>
- <option value="&dtml-sequence-item;">
- <dtml-var sequence-key></option>
- </dtml-in>
- </select></td></tr>
- <tr valign="top"> <th align='LEFT'><em>Arguments<em></th>
- <td align='LEFT'>
- <textarea name="arguments" cols="40" rows="4"></textarea>
- </td></tr>
- <tr> <td colspan=2 align='LEFT'><strong>Query template</strong><br>
- <textarea name="template:text" rows=9 cols=50 wrap="off">select *
- from data</textarea></td></tr>
-
- <tr><td colspan=2>
- <input type="hidden" name="key" value="">
- <input type="SUBMIT" name="submit" value=" Add ">
- <input type="SUBMIT" name="submit" value=" Add and Edit ">
- <input type="SUBMIT" name="submit" value=" Add and Test ">
- </td></tr>
-
- </table>
- </form>
-
-
- <dtml-else>
- <em><strong>Warning:</strong>
- There are no SQL database connections. You need
- to add a Zope SQL database connection
- before you can use a Zope SQL Method.
- </em>
- </dtml-if>
-
- </body></html>
-